package com.tgpms.web.earlierStage.dao;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;

import com.tgpms.web.earlierStage.entity.DocSort;

/**
* 表DOC_SORT -> null 的基本功能实现
*
* @author DESKTOP-I3TG0H3
* @createDate 2019/11/27
*/
public interface DocSortMapper {
	
	//根据ID删除任务文件
	@Delete("delete from DOC_SORT where ID = #{id}")
	int deleteDocSortById(@Param("id")String id);
	
    /**
     * null  deleteByPrimaryKey 实现
     * 
     * @param id
     * @return null int
     * @author: DESKTOP-I3TG0H3
     * @createDate: 2019-11-27 15:30:56
     */
    int deleteByPrimaryKey(String sortId);

    /**
     * null  insert 实现
     * 
     * @param record
     * @return null int
     * @author: DESKTOP-I3TG0H3
     * @createDate: 2019-11-27 15:30:56
     */
    int insert(DocSort record);

    /**
     * null  insertSelective 实现
     * 
     * @param record
     * @return null int
     * @author: DESKTOP-I3TG0H3
     * @createDate: 2019-11-27 15:30:56
     */
    int insertSelective(DocSort record);

    /**
     * null  selectByPrimaryKey 实现
     * 
     * @param id
     * @return null com.tgpms.web.earlierStage.entity.DocSort
     * @author: DESKTOP-I3TG0H3
     * @createDate: 2019-11-27 15:30:56
     */
    DocSort selectByPrimaryKey(String sortId);

    /**
     * null  updateByPrimaryKeySelective 实现
     * 
     * @param record
     * @return null int
     * @author: DESKTOP-I3TG0H3
     * @createDate: 2019-11-27 15:30:56
     */
    int updateByPrimaryKeySelective(DocSort record);

    /**
     * null  updateByPrimaryKey 实现
     * 
     * @param record
     * @return null int
     * @author: DESKTOP-I3TG0H3
     * @createDate: 2019-11-27 15:30:56
     */
    int updateByPrimaryKey(DocSort record);
    
}